import React, {Component} from "react";
import {
	View,
	Text,
	Button,
} from "react-native";
import {TabNavigator} from "react-navigation";

//Tab1
class TabDa extends Component {
	static navigationOptions = {
		tabBarLabel: "档案",
	}
	constructor(props) {
		super(props);
	}
	render() {
		return (
			<View>
				<Text>这是档案页面</Text>
			</View>
		);
	}
}

//Tab2
class TabQb extends Component {
	static navigationOptions = {
		tabBarLabel: "钱包",
	}
	constructor(props) {
		super(props);
	}
	render() {
		return (
			<View>
				<Text>这是钱包页面</Text>
			</View>
		);
	}
}

const MyTab = TabNavigator({
	TabDa: {
		screen: TabDa,
	},
	TabQb: {
		screen: TabQb,
	}
}, {
	tabBarPosition: "bottom",
})

export default MyTab;